package com.ssy.lingxi.order.model.vo.basic.response;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 订单商品汇总信息
 * @author 万宁
 * @version 2.0.0
 * @date 2021-07-19
 */
public class OrderProductSummaryVO implements Serializable {
    private static final long serialVersionUID = -17744579083042278L;

    public OrderProductSummaryVO() {
        this.productAmount = "0.00";
        this.freight = "0.00";
        this.taxes = "0.00";
        this.promotionAmount = "-0.00";
        this.couponAmount = "-0.00";
        this.deductionAmount = "0.00";
        this.totalAmount = "0.00";
        this.products = new ArrayList<>();
    }

    /**
     * 商品合计金额，保留小数点后两位
     */
    private String productAmount;

    /**
     * 运费，保留小数点后两位
     */
    private String freight;

    /**
     * 税费，保留小数点后两位
     */
    private String taxes;

    /**
     * 促销立减金额，保留小数点后两位
     */
    private String promotionAmount;

    /**
     * 优惠立减金额，保留小数点后两位
     */
    private String couponAmount;

    /**
     * 积分抵扣总金额，保留小数点后两位
     */
    private String deductionAmount;

    /**
     * 总计金额，保留小数点后两位
     */
    private String totalAmount;

    /**
     * 订单商品列表
     */
    private List<OrderProductDetailVO> products;

    public String getProductAmount() {
        return productAmount;
    }

    public void setProductAmount(String productAmount) {
        this.productAmount = productAmount;
    }

    public String getTaxes() {
        return taxes;
    }

    public void setTaxes(String taxes) {
        this.taxes = taxes;
    }

    public String getFreight() {
        return freight;
    }

    public void setFreight(String freight) {
        this.freight = freight;
    }

    public String getPromotionAmount() {
        return promotionAmount;
    }

    public void setPromotionAmount(String promotionAmount) {
        this.promotionAmount = promotionAmount;
    }

    public String getCouponAmount() {
        return couponAmount;
    }

    public void setCouponAmount(String couponAmount) {
        this.couponAmount = couponAmount;
    }

    public String getDeductionAmount() {
        return deductionAmount;
    }

    public void setDeductionAmount(String deductionAmount) {
        this.deductionAmount = deductionAmount;
    }

    public String getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(String totalAmount) {
        this.totalAmount = totalAmount;
    }

    public List<OrderProductDetailVO> getProducts() {
        return products;
    }

    public void setProducts(List<OrderProductDetailVO> products) {
        this.products = products;
    }
}
